using System;
using System.Collections;
using System.Web.UI.WebControls;

namespace Sedna.Core.Controller.Configurations
{
	/// <summary>
	/// Summary description for LayoutCellConfiguration.
	/// </summary>
	public class LayoutCellConfiguration : GenericConfiguration, ILayoutCellConfiguration
	{

		IList controls;
		HorizontalAlign align = HorizontalAlign.NotSet;
		VerticalAlign valign = VerticalAlign.NotSet;
		int rowSpan = 1;
		int colSpan = 1;
//		string cssClass = null; - moved to GenericConfiguration
//		Unit width = 0;
		bool noWrap = false;

		public LayoutCellConfiguration()
		{
		}

		public HorizontalAlign Align
		{
			get{return align;}
			set{align = value;}
		}

		public VerticalAlign Valign
		{
			get{return valign;}
			set{valign = value;}
		}
		
/*
		public Unit Width
		{
			get{return width;}
			set{width = value;}
		}
*/
		
		public int RowSpan
		{
			get{return rowSpan;}
			set{rowSpan = value;}
		}

		public int ColSpan
		{
			get{return colSpan;}
			set{colSpan = value;}
		}

//		public string CssClass
//		{
//			get{return this.cssClass;}
//			set{this.cssClass = value;}
//		}

		public bool NoWrap
		{
			get{return this.noWrap;}
			set{this.noWrap = value;}
		}

		public IList Controls
		{
			get { return controls; }
			set { controls = value; }
		}
	}
}
